// import mockHttp from "../../mockHttp";
import axios from "../../axios";
import type { LoginProps } from "../type";

interface StudentInfoConfigProps {
  phone: string;
}

interface StudentChangePassConfigProps {
  phone: string;
  pwd: string;
  originPwd: string;
}

// 学生登录
export const studentLoginApi = (data: LoginProps) =>
  axios({
    url: "/exam/accountMessage/login",
    method: "POST",
    params: data,
  });

// 获取学生信息
export const studentInfoApi = (params: StudentInfoConfigProps) =>
  axios({
    url: "/exam/accountMessage/get",
    method: "POST",
    params,
  });

// 学生修改密码
export const studentChangePassApi = (params: StudentChangePassConfigProps) =>
  axios({
    url: "/exam/accountMessage/modifyPwd",
    method: "POST",
    params,
  });
